<?php

namespace App\Http\Controllers;

use App\Bid_Goods;
use Illuminate\Http\Request;

class BidGoodsController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index(Request $request)
    {
        return view('pages.bid', [
            'bid' => Bid_Goods::with(['cate:id,name', 'craftsman:id,shop_name'])->paginate(10),
            'order' => 'desc'
        ]);
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  \App\Bid_Goods  $bid_Goods
     * @return \Illuminate\Http\Response
     */
    public function show(Bid_Goods $bid_Goods)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Bid_Goods  $bid_Goods
     * @return \Illuminate\Http\Response
     */
    public function edit(Bid_Goods $bid_Goods)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Bid_Goods  $bid_Goods
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, Bid_Goods $bid_Goods)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  \App\Bid_Goods  $bid_Goods
     * @return \Illuminate\Http\Response
     */
    public function destroy(Bid_Goods $bid_Goods)
    {
        //
    }
}
